<?php include _include(ADMIN_PATH.'view/htm/header.inc.htm');?>

<div class="row">
    <div class="col-lg-10 mx-auto">

        <div class="btn-group mb-3" role="group"><?php echo $threadext_tab_active; ?></div>

        <div class="card">
            <div class="card-body">
                <form action="<?php echo url("plugin-setting-{$dir}");?>" method="post" id="form">
                <div class="form-group row">
                    <label class="col-sm-2 form-control-label"><?php echo lang('plugin_doct'); ?></label>
                    <div class="col-sm-10">
                        <a href="<?php echo $threadext_doc_url; ?>" target="_blank"><?php echo lang('threadext_read_doct'); ?></a>
                    </div>
                </div>
                <div class="form-group row">
                    <div class="col-sm-10 m-auto">
                    <textarea title="配置内容" id="threadextset" name="threadextset" style="height: 40rem;width:100%"><?php echo $threadext_cfg; ?></textarea>
                    </div>
                </div>
                <div class="form-group row" id="site_url">
                    <label class="col-sm-2 form-control-label"><?php echo lang('sponsor_creator'); ?></label>
                    <div class="col-sm-10 text-center">
                        <img lang="zh-cn" style="min-height: 100px" src="http://soft.ahfrc.com/soft/xiunoplugin/img/sponsor_cn.gif" alt="赞助支付码" title="赞助支付码" class="center-block paycode langfilter" />
                        <img lang="en" style="min-height: 100px" src="http://soft.ahfrc.com/soft/xiunoplugin/img/sponsor_fc.gif" alt="Sponsored payment code" title="Sponsored payment code" class="center-block paycode langfilter" />
                        <p class="text-primary text-center lead"><?php echo lang('sponsor_info'); ?></p>
                        <hr/>
                        <p class="langfilter text-secondary text-left" lang="zh-cn">更新建议、BUG反馈、商业授权请联系<em>wtshuang@qq.com</em>,或者在xiuno官网论坛搜索“帖子扩展插件ghx_treadext更新建议、BUG反馈收集”进入。</p>
                        <p class="langfilter text-secondary text-left" lang="en">Please contact <em>wtshuang@qq.com</em> for update suggestions, BUG feedback, and commercial authorization.<a href="http://soft.ahfrc.com/xiunoplugin-treadext-customer.htm" target="_blank">Details</a></p>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 form-control-label"></label>
                    <div class="col-sm-10">
<?php if($get_cfg_succ){ ?>
                        <button type="submit" class="btn btn-primary btn-block" id="submit" data-loading-text="<?php echo lang('submiting');?>..."><?php echo lang('confirm');?></button>
<?php } ?>
                        <a role="button" class="btn btn-secondary btn-block mt-3" href="javascript:history.back();">
                            <?php echo lang('back');?>
                        </a>
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>

<?php include _include(ADMIN_PATH.'view/htm/footer.inc.htm');?>

<script type="text/javascript">//<![CDATA[
var pagelang = $("HTML").prop("lang");
if(pagelang == '') pagelang = 'zh-cn';
var setinfo_1 = $(".langfilter[lang='"+pagelang+"']");
if(setinfo_1.length == 0) pagelang = 'en';
$(".langfilter:not([lang='"+pagelang+"'])").hide();
//]]>
</script>